package e_adapter.b_design_pattern;

/**
 * Created by wug on 2016/6/30 0030.
 */
public class ObjectAdapter implements Target {
    private String name = "对象适配器";

    private AVLine avLine;

    public ObjectAdapter(AVLine avLine) {
        this.avLine = avLine;
    }

    public VGALine AV2VGA() {
        avLine.getVidio();
        System.out.println("都输出到" + name);
        System.out.println(name + "将av视频信号转换为vga信号");
        return new VGALine("VGA 信号!");
    }
}
